package com.java2207.group1.mapper;

import com.java2207.group1.bo.CallbackBo;
import com.java2207.group1.pojo.Callback;
import com.java2207.group1.vo.callback.BarVo;
import com.java2207.group1.vo.callback.PieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CallbackMapper {
    List<Callback> selectByParams(Map<String, Object> params);

    int deleteCallback(Integer id);

    int addCallback(Callback callback);

    int updateCallback(Callback callback);

    int batchCal(@Param("ids") String[] ids);

    List<BarVo> setBarData();

    List<PieVo> setPieData();

    List<CallbackBo> callbackExcelData(Callback callback);
}
